<!--
 * @Author       : wfl
 * @LastEditors: ww
 * @description  :
 * @updateInfo   :
 * @Date         : 2023-02-24 16:08:34
 * @LastEditTime: 2023-06-12 11:28:14
-->
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" charset="UTF-8" />
    <link rel="icon" href="<%= icon %>" />
    <link rel="stylesheet" href="/loading.css" />
    <link rel="stylesheet" href="/browser_upgrade/index.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="theme-color"/>
    <title><%= title %>载入中…</title>
  </head>
  <body>
    <script >
      const link = document.querySelector('link[rel="icon"]')
      const str = localStorage.getItem('tenant') || ''
      const tenant = str ? JSON.parse(str) : ''
      if (tenant.value && tenant.value.favicon)
        link.href = `<%= downloadUrl %>${tenant.value.favicon}`
      else
        link.href = '<%= icon %>'
    </script>
    <div id="app">
      <div class="iking-admin-home">
        <div class="loading">
          <div class="square"></div>
          <div class="square"></div>
          <div class="square"></div>
          <div class="square"></div>
        </div>
        <div class="text"><%= title %>载入中...</div>
      </div>
      <div id="browser-upgrade">
        <div class="title">为了您的体验，推荐使用以下浏览器</div>
        <div class="browsers">
          <a href="https://www.microsoft.com/edge" target="_blank" class="browser">
            <img class="browser-icon" src="/browser_upgrade/edge.png" />
            <div class="browser-name">Mircosoft Edge</div>
          </a>
          <a href="https://www.google.cn/chrome/" target="_blank" class="browser">
            <img class="browser-icon" src="/browser_upgrade/chrome.png" />
            <div class="browser-name">Google Chrome</div>
          </a>
        </div>
      </div>
    </div>

    <script>
      if (!!window.ActiveXObject || 'ActiveXObject' in window)
        document.getElementById('browser-upgrade').style.display = 'block'
    </script>
  </body>
</html>
